﻿<Serializable()> _
 Public MustInherit Class Pessoa
    Inherits BaseDominio

    Private _nome As String
    Public Overridable Property Nome() As String
        Get
            Return _nome
        End Get
        Set(ByVal value As String)
            _nome = value
        End Set
    End Property

    Private _CPF As String
    Public Overridable Property CPF() As String
        Get
            Return _CPF
        End Get
        Set(ByVal value As String)
            _CPF = value
        End Set
    End Property

    Private _rg As String
    Public Overridable Property RG() As String
        Get
            Return _rg
        End Get
        Set(ByVal value As String)
            _rg = value
        End Set
    End Property

    Private _dataNascimento As Nullable(Of Date)
    Public Overridable Property DataNascimento() As Nullable(Of Date)
        Get
            Return _dataNascimento
        End Get
        Set(ByVal value As Nullable(Of Date))
            _dataNascimento = value
        End Set
    End Property

    Private _enderecos As IList(Of Endereco)
    Public Overridable Property Enderecos() As IList(Of Endereco)
        Get
            Return _enderecos
        End Get
        Set(ByVal value As IList(Of Endereco))
            _enderecos = value
        End Set
    End Property

    Private _contatos As IList(Of Contato)
    Public Overridable Property Contatos() As IList(Of Contato)
        Get
            Return _contatos
        End Get
        Set(ByVal value As IList(Of Contato))
            _contatos = value
        End Set
    End Property

End Class